#pragma once
#include "dsutil.h"
#include "entity/entity.h"

extern CSoundManager* SOUNDMAN;

struct soundentity_t:entity_t
{
	DECLARE_ENTITY;

	soundentity_t();
	~soundentity_t();
	void onload();
	void play(bool loop=false);
	void stop();
	void exit();

#ifdef LEO_DESIGNER
	void onchangeproperty(const stringhash& propname);
#endif

	CSound* sound;
	//props
	stringhash wavfile;
};